home *** CD-ROM | disk | FTP | other *** search
- package com.sun.xml.parser;
-
- import java.io.IOException;
- import java.net.URL;
- import org.xml.sax.EntityResolver;
- import org.xml.sax.InputSource;
- import org.xml.sax.Locator;
- import org.xml.sax.SAXException;
-
- class ExternalEntity extends EntityDecl {
- String systemId;
- String publicId;
- String notation;
-
- public ExternalEntity(Locator var1) {
- }
-
- public InputSource getInputSource(EntityResolver var1) throws SAXException, IOException {
- InputSource var2 = var1.resolveEntity(this.publicId, this.systemId);
- if (var2 == null) {
- var2 = Resolver.createInputSource(new URL(this.systemId), false);
- }
-
- return var2;
- }
- }
-